<?php

/**
 * @author PeoneEr
 */
require_once "core/application/models/mlogon/mlogon2.php";

class InsertLog_Model extends Mlogon2 {
    private $_query = NULL;

    protected function insertNewLog($account, $success, $operation) {
        DB::getInstance()->openConnectionToGS();
        $this->_query = "INSERT INTO `personal_enter_log` (`account`, `date`, `success`, `operation`) VALUES ('$account', NOW(), '$success', '$operation')";
        DB::getInstance()->sql($this->_query);
        unset($this->_query);
    }

}

?>